import config from '../utils/config.js'
export default {
	add: ({
		userId,
		sell,
		articleId,
		address,
		time = new Date().getTime(),
		cb
	}) => {
		uni.request({
			url: config['api_server'] + '/orders/add',
			method: 'POST',
			data: {
				userId,
				sell,
				articleId,
				address,
				time
			},
			success: ({data}) => {
				cb({data})
			}
		})
	}
}
